import {environment} from '@env/environment';

export const UrlManager = {
  user: {
    userLoginUrl: '/base/login',
    verifyUrl: '/base/verify',
    logoutUrl: '/base/logout',
    getUserInfo: '/get/web/authoritymodule/UserAuthorityService/getByUser',
    getUserByIdUrl: '/get/web/authoritymodule/UserService/modifyUserGetInfoById',
    getUserByNameUrl: '/get/web/authoritymodule/UserService/selectByUsername',
    getAllUsersUrl: '/get/web/authoritymodule/UserService/getAllUsers',
    addUserUrl: '/post/web/authoritymodule/UserService/addUser',
    uppdateUserUrl: '/post/web/authoritymodule/UserService/updateUser',
    deleteUserUrl: '/get/web/authoritymodule/UserService/deleteUserById',
    encryptPwdPUrl: '/post/web/authoritymodule/UserService/encryptString',
    getUserNameCount: '/get/web/authoritymodule/UserService/getUserNameCount'
  },
  menu: {
    getMenuUrl: '/get/web/authoritymodule/UserAuthorityService/getUserMenuFunctionByUserId',
    getMenuByPageUrl: '/get/web/authoritymodule/MenuFunctionService/getMenuFunctionByPage',
    getMenuByPageWithRoleUrl: '/get/web/authoritymodule/MenuFunctionService/getMenuFunctionByPageWithRole',
    getMenuByIdUrl: '/get/web/authoritymodule/MenuFunctionService/getMenuFunction',
    getMenuByNameOrPidUrl: '/get/web/authoritymodule/MenuFunctionService/searchMenuFunctionByName',
    addMenuUrl: '/post/web/authoritymodule/MenuFunctionService/addMenuFunction',
    updateMenuUrl: '/post/web/authoritymodule/MenuFunctionService/updateMenuFunctionById',
    deleteMenuUrl: '/get/web/authoritymodule/MenuFunctionService/deleteMenuFunctionById',
    getAllAccountsUrl: '/get/web/accountmodule/MenuFunctionService/getAllAccounts',
    getMenuFunctionListUrl: '/get/web/authoritymodule/MenuFunctionService/getMenuFunctionListByPage',
    getMenuPageByTypeUrl: '/get/web/authoritymodule/MenuFunctionService/getMenuPageByType',
    refreshAuthority: '/get/web/authoritymodule/MenuFunctionService/refreshAuthority'
  },
  role: {
    getRoleByIdUrl: '/get/web/authoritymodule/RoleService/getRoleById',
    getAllRolesByPageUrl: '/get/web/authoritymodule/RoleService/getRoleByPage',
    getStoreRoleByPageUrl: '/get/web/authoritymodule/RoleService/getStoreRoleByPage',
    addRoleUrl: '/post/web/authoritymodule/RoleService/addRole',
    uppdateRoleUrl: '/post/web/authoritymodule/RoleService/updateRoleById',
    deleteRoleUrl: '/get/web/authoritymodule/RoleService/logicallyDeleteRoleById',
    saveRoleMenuFunction: '/post/web/authoritymodule/RoleMenuFunctionService/saveRoleMenuFunction'
  },
  ueditor: {
    ueditorConfig: '/town_mall_server/ueditor',
    imageList:'/imageList',
    uploadImage:'/uploadImage',
    uploadVideo:'/uploadVideo'
  },
  filePrefix: 'https://town-mall.oss-cn-shenzhen.aliyuncs.com/',
  upload: {
    createPolicy: '/oss/createPolicy',
    uploadFile: environment.serverUrl + '/fileUpload/uploadFile',
    uploadImage: environment.serverUrl + '/fileUpload/uploadImage'
  },
  socket: {
    config: {
      connect: 'ws://localhost:9326',
      reconnect_delay: 5000,
      debug: !environment.production
    }
  },
  /**
   * 业务接口
   */
  api: {
    demo: {
      getDemo: ''
    },
    question:{
      addQuestion: '/post/web/questionModule/QuestionService/addQuestion',
      updateQuestion:'/post/web/questionModule/QuestionService/updateQuestion',
      getAllQuestionByPage:'/get/web/questionModule/QuestionService/getAllQuestionByPage',
      getQuestionById:'/get/web/questionModule/QuestionService/getQuestionById',
      deltetQuestion:'/get/web/questionModule/QuestionService/deltetQuestion',
      getQuestionByIds:'/get/web/questionModule/QuestionService/getQuestionByIds'
    },
    paper:{
      getQuestionNumber:'/get/web/paperModule/PaperService/getQuestionNumber',
      exportPaper:'/post/web/download/paperModule/PaperService/exportPaper',
      getAllPaperByPage:'/get/web/paperModule/PaperService/getAllPaperByPage',
      getKnowledgeList:'/get/web/knowledgeModule/KnowledgeService/getKnowledgeList',
      getQuestionByKnowledge:'/get/web/paperModule/PaperService/getQuestionByKnowledge',
      getAutoPaperQuestionNumByDifficulty:'/get/web/knowledgeModule/KnowledgeService/getAutoPaperQuestionNumByDifficulty'
    },
    knowledge:{
      getKnowledgeByPage: '/get/web/knowledgeModule/KnowledgeService/getKnowledgeByPage',
      deleteKnowledgeById: '/get/web/knowledgeModule/KnowledgeService/deleteKnowledgeById',
      getKnowledgeById: '/get/web/knowledgeModule/KnowledgeService/getKnowledgeById',
      getKnowledgeByName: '/get/web/knowledgeModule/KnowledgeService/getKnowledgeByName',
      updateKnowledgeById: '/post/web/knowledgeModule/KnowledgeService/updateKnowledgeById',
      addKnowledge: '/post/web/knowledgeModule/KnowledgeService/addKnowledge',
      getKnowledgeParentByPage: '/get/web/knowledgeModule/KnowledgeService/getKnowledgeParentByPage',
      getKnowledgeByPid: '/get/web/knowledgeModule/KnowledgeService/getKnowledgeByPid',
      getKnowledgeListByPid: '/get/web/knowledgeModule/KnowledgeService/getKnowledgeListByPid',
      getKnowledgeExpand: '/get/web/knowledgeModule/KnowledgeService/getKnowledgeExpand'
    }



  },
};
